You can set filters on a large set of data that has already been retrieved from the data source, and then use them with datasets or data regions to limit the information you want to display on your report. Normally you can filter your data using parameters in a query, but if your data source does not support parameters you can use filters. You can set filters on the following:
Each option of using a filter has its advantages. Normally, you use a dataset filter if you want to reduce data for the whole report in your dataset query to the server that stores data. Then you will use the filtered data throughout the report. For example, you want to create a report that shows sales for the last quarter in a year. Then in your report you will add a dataset that provides all sales orders for a year and create a dataset filter to get only data for the last quarter of the year's sales from the dataset.
You may also want to use a data region filter. Such filter does not reduce data available throughout the report. With the data region filter, you can show some data in one part of the report while showing the rest of the data in another part of the report. For example, you can create a report with two data regions, one data region (Table 1) displaying the last month's sales per day and the other data region (Table 2) displaying the summary data for the monthly sales. In this case, you can use the data without any filter in the summary data table (Table 2) but use a data region filter in the details table (Table 1) to reduce data just for the last month.
Filter Operator | Description |
---|---|
And | Select this logical operator if you want to choose data that matches each of the filter criteria. This operator works with 2 or more filter criteria. |
Or | Select this logical operator if you want to choose data that matches any of the filter criteria. This operator works with 2 or more filter criteria. |
EqualTo | Select this operator if you want to choose data for which the value on the left is equal to the value on the right. |
NotEqualTo | Select this operator if you want to choose data for which the value on the left is not equal to the value on the right. |
GreaterThan | Select this operator if you want to choose data for which the value on the left is greater than the value on the right. |
GreaterThanOrEqualTo | Select this operator if you want to choose data for which the value on the left is greater than or equal to the value on the right. |
LessThan | Select this operator if you want to choose data for which the value on the left is less than the value on the right. |
LessThanOrEqualTo | Select this operator if you want to choose data for which the value on the left is less than or equal to the value on the right. |
In | Select this operator if you want to choose items from the value on the left which are in the array of values on the right. |
Between | Select this operator if you want to choose items from the value on the left which fall between pair of values you specify on the right. This operator enables two Value boxes instead of one. |
Contains | Select this operator if you want to choose data for which the value on the left contains the value on the right. |
DoesNotContain | Select this operator if you want to choose data for which the value on the left does not contain the value on the right. |
BeginsWith | Select this operator if you want to choose data for which the value on the left begins with the value on the right. |
DoesNotBeginWith | Select this operator if you want to choose data for which the value on the left does not begin with the value on the right. |
Let us apply filter to a report that looks similar to the following. We want to show only customers from one country, for example, from Australia.
Report without filter:
Report with filter:
This report is editable only by users with administrator role.
Property | Value |
---|---|
Filter Expression | =InStr(Fields.Item("Billing Country").Value, "Australia") |
Operator | NotEqual |
Value | 0 |
Property | Value |
---|---|
Filter Expression | Billing Country |
Operator | Contains |
Value | Australia |
Note: As an advanced option, you can use a smart filter in semantic reports to create multiple filter groups with the AND/OR relation between them. Each filter group can have multiple filtering criteria.
1. You can add a Parent filter group by clicking the Add Parent button in the Query Filter property.
2. You can create a Child filter group for Parent filter groups by setting AND/OR functions for the filter criterion.
Property | Value |
---|---|
Filter Expression | =InStr(Fields.Item("Billing Country").Value, "Australia") |
Operator | NotEqual |
Value | 0 |
Property | Value |
---|---|
Filter Expression | =InStr(Fields.Item("Billing Country").Value, "Australia") |
Operator | NotEqual |
Value | 0 |